﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="admin_RoleManager_Default" Theme="Default" %>

<%@ Register Assembly="jzlib" Namespace="jzlib.asp.net.Controls" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPage" runat="Server">
    <table border="0" cellspacing="0" cellpadding="1" width="100%" class="StandardTable">
        <tr>
            <td class="trr">
                &nbsp;
            </td>
            <td class="trl">
                <asp:Button ID="btnAdd" runat="server" Text="新增角色" OnClick="btnAdd_Click" />
            </td>
        </tr>
        <tr>
            <td class="trc" colspan="2">
                <br />
                <asp:GridViewEx ID="GridViewEx1" runat="server" AutoGenerateColumns="False" DataKeyNames="RoleId"
                    Width="99%" OnBindFun="BindGridViewEx" PageSize="15" AllowSorting="True" AllowPaging="True"
                    CellPadding="4" ForeColor="#333333" AutoSortExpression="" 
                    OnRowEditing="GridViewEx1_RowEditing" 
                    onselectedindexchanging="GridViewEx1_SelectedIndexChanging" 
                    onrowdeleting="GridViewEx1_RowDeleting">
                    <EditRowStyle BackColor="#2461BF" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="left" />
                    <MouseBehavior MouseOverColor="" Support="False"></MouseBehavior>
                    <RowStyle CssClass="gvRow" />
                    <HeaderStyle CssClass="gvHeader" />
                    <AlternatingRowStyle CssClass="gvAlternat" />
                    <AutoSortSetting AutoSort="True" SortTip=""></AutoSortSetting>
                    <TrimLongStrSetting Support="True" MaxLength="100"></TrimLongStrSetting>
                    <ResizeHeader Support="True"></ResizeHeader>
                    <Columns>
                        <asp:TemplateField SortExpression="RoleName" HeaderText="角色名称">
                            <ItemTemplate>
                                <%#Eval("RoleName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="Remark" HeaderText="备注">
                            <ItemTemplate>
                                <%#Eval("Remark")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowCancelButton="False" ShowEditButton="True" HeaderText="编辑"  />
                        <asp:CommandField ShowCancelButton="False" ShowSelectButton="True" HeaderText="模块权限" SelectText="授权"/>
                        <asp:CommandField DeleteText="授权" ShowDeleteButton="True" HeaderText="功能权限" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <CustomPage SelfMotion="False" Position="Bottom" CusPageRowStyle-HorizontalAlign="Left"
                        CustomSupport="True">
                        <CusPageRowStyle HorizontalAlign="Left"></CusPageRowStyle>
                    </CustomPage>
                    <ExportSetting Visible="False" Sepeater="&amp;nbsp;||&amp;nbsp;" ExportExcel="False"
                        ExportWord="False" ShowCopyRight="True" ExportPdf="False" ExportFileName="exportedgv">
                    </ExportSetting>
                    <LockHeaderSetting Support="False" Height="800px" Width=""></LockHeaderSetting>
                    <CustomColumns>
                        <NumberColumn Visible="False" Width="0" Align="Left" Position="0" Priority="0"></NumberColumn>
                        <MultiChooseColumn Visible="False" Width="0" Align="Left" Position="0" Priority="0">
                        </MultiChooseColumn>
                        <RadioButtonColumn Visible="False" Width="0" Align="Left" Position="0" Priority="0">
                        </RadioButtonColumn>
                    </CustomColumns>
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <PagerSettings Visible="False" />
                </asp:GridViewEx>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
